#ifndef COMMON_H
#define COMMON_H

#include <stdio.h>
#include <math.h>
#include <list>
#include "SDL.h"        // SDL library

#define DEL(p) if(p) { delete p; p = NULL; }
#define DEL_ARRAY(p) if(p) { delete[] p; p = NULL; }


enum OBJECT_TYPE
{
    OBJ_PLAYER,
    OBJ_TANK,
    OBJ_BULLET,
};

#include "htmlog.h"     // log
#include "xgame.h"      // system
#include "xobjlist.h"   // list of game objects
#include "xlevel.h"     // load/save levels
#include "xobject.h"    // abstract of game object
#include "xtank.h"      // tank class
#include "xplayer.h"    // player

#endif // COMMON_H
